<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <script language="javascript" type="text/javascript">
     	function goback(){
     		var url = "<%=path%>/other/goBack2ArrGoodsList";
			location.href = url;
     	}

     	function exportData(){
     		form2.action="<%=path%>/other/exportArrGoods?isList=n";
     		form2.submit();
		}
     </script>
    
</head>
<body class="fullbody">
        <div class="context">
        	<div class="position">
            	<div class="tposi">当前位置：
                    	<a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                       	<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">到货明细</span>
                </div>
                <div class="help">
					<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/DHCX.html');" class="linkstyle">帮助</a>
				</div>
            </div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;到货明细</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div>
                         <div  >
		                    <div class="title_index">
							    <div class="margin20"></div>
							    <div class="subpage_search" >
			                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
			                            <tr>
			                                <td valign="middle" class="w_1">到货单号：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="billNo" name="billNo" type="text" value="${arrGoodsForm12.billNo}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">到货日期：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="arriveDate" name="arriveDate" type="text" value="${arrGoodsForm12.arriveDate}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                            	<td valign="middle" class="w_1">采购公司：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="purCorpName" name="purCorpName" type="text" value="${arrGoodsForm12.purCorpName}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">采购部门：</td>
			                                <td valign="middle" class="w_2">
			                                   <input id="purDeptName" name="purDeptName" type="text" value="${arrGoodsForm12.purDeptName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">收货人：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="receivePsnName" name="receivePsnName" type="text" value="${arrGoodsForm12.receivePsnName}" readonly="readonly" class="searchtext"/>
			                                </td>
			                                <td valign="middle" class="w_1">是否退货：</td>
			                                <td valign="middle" class="w_2">
			                                    <c:if test="${'Y'==arrGoodsForm12.isBackGoods}">
			                                   		 <input id="isBackGoods" name="isBackGoods" type="text" value="是" readonly="readonly" class="searchtext" />
			                                    </c:if>
			                                    <c:if test="${'N'==arrGoodsForm12.isBackGoods}">
			                                   		 <input id="isBackGoods" name="isBackGoods" type="text" value="否" readonly="readonly" class="searchtext" />
			                                    </c:if>
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">退货理由：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="backReason" name="backReason" type="text" value="${arrGoodsForm12.backReason}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">备注：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="memo" name="memo" type="text" value="${arrGoodsForm12.memo}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr><td colspan="4">&nbsp;</td></tr>
			                        </table>
                    			</div>
			                    <div class="margin20"></div>
							    <div>
							         <table class="tableCss" cellpadding="0" cellspacing="0" >
							            <tr  class="titleTr" >
							                <th width="140px">订单号</th>
							                <th width="220px">产品 </th>
							                <th width="180px">数量</th>
							                <th width="120px">价格</th>
							                <th width="140px" class="th1">金额</th>
							            </tr>
								        <c:if test="${arrGoodsForm12!=null && arrGoodsForm12.arrGoodsItemForm!=null}">
											<c:forEach items="${arrGoodsForm12.arrGoodsItemForm}" var="arrGoodsItemForm" varStatus="index">
												<c:if test="${arrGoodsItemForm.index%2==1}">
													<tr align="left" class="contTr-old"  >
												</c:if>
												<c:if test="${arrGoodsItemForm.index%2==0}">
													<tr align="left" class="contTr-even">
												</c:if>
													<td class="td1">${arrGoodsItemForm.orderNo}</td>
													<td class="td1">
														<span class="prodName">${arrGoodsItemForm.prodName}</span><br/>
														<c:if test="${arrGoodsItemForm.invcode!=null && ''!=arrGoodsItemForm.invcode}">编码：${arrGoodsItemForm.invcode}<br/></c:if>
														<c:if test="${arrGoodsItemForm.module!=null && ''!=arrGoodsItemForm.module}">规格：${arrGoodsItemForm.module}<br/></c:if>
														<c:if test="${arrGoodsItemForm.type!=null  && ''!=arrGoodsItemForm.type}">型号：${arrGoodsItemForm.type}<br/></c:if>
														<c:if test="${arrGoodsItemForm.batchNo!=null  && ''!=arrGoodsItemForm.batchNo}">批次号：${arrGoodsItemForm.batchNo}<br/></c:if>
														<c:if test="${arrGoodsItemForm.graphid!=null  && ''!=arrGoodsItemForm.graphid}">图号：${arrGoodsItemForm.griphid}<br/></c:if>
														<c:if test="${arrGoodsItemForm.def18!=null  && ''!=arrGoodsItemForm.def18}">主机号：${arrGoodsItemForm.def18}<br/></c:if>
														<c:if test="${arrGoodsItemForm.def20!=null  && ''!=arrGoodsItemForm.def20}">技术要求：${arrGoodsItemForm.def20}<br/></c:if>
														<c:if test="${arrGoodsItemForm.desc!=null  && ''!=arrGoodsItemForm.desc}">描述：${arrGoodsItemForm.desc}</c:if>
														
													</td>
													<td class="td1">
														到货数量：<font class="words-red-bold">${arrGoodsItemForm.arriveNum}</font>${arrGoodsItemForm.measureName}<br/>
														合格数量：<font class="words-red-bold">${arrGoodsItemForm.qualificateNum}</font><br/>
														不合格数量：<font class="words-red-bold">${arrGoodsItemForm.disQulificateNum}</font><br/>
														累计入库数量：<font class="words-red-bold">${arrGoodsItemForm.totalArrNum}</font>
													</td>
													<td class="td1">
														含税单价：<font class="words-blue">${arrGoodsItemForm.norgtaxprice}</font><br/><!--含税单价 arrGoodsItemForm.norgtaxprice 原 price modify by yf 2013-01-25 -->
														币种：${arrGoodsItemForm.curencyName}
													</td>
													<td class="td1">
													    <!-- 税率：<font class="words-blue">${arrGoodsItemForm.rate}%</font><br/>-->
														价税合计：<font class="words-red-bold">${arrGoodsItemForm.norgtaxmny}</font><!-- 价税合计 norgtaxmny 原priceTaxAmount-->
													</td>
												</tr>
											</c:forEach>
										</c:if>
									</table>
							    </div>
							    <div class="margin20"></div>
							    <div>
							    	<form name="form2" method="post">
								        <table width="600" align="center" border="0" cellspacing="0" cellpadding="0">
								            <tr id="order_confirm" align="center">
								                <td>
								                    <input type="button" class="btnscs" value="返回" onclick="goback()" />&nbsp;&nbsp;&nbsp;&nbsp;
								                    <input type="button" class="btnscs" value="导出" onclick="exportData()" />
								                </td>
								            </tr>
								        </table>
							        </form>
							    </div>
							</div>
			                <div class="margin20"></div>
						</div>
                    </div>
                    <div class="margin8"></div>
                    <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div> 
                </div>
            </div>
        <div class="margin20"></div>
</body>
</html>
